package com.bwie.pojo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 
 * @TableName tb_cust
 */
@TableName(value ="tb_cust")
@Data
public class TbCust {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer custId;

    /**
     * 客户名称
     */
    @NotBlank(message = "客户名称不能为空")
    private String custName;

    /**
     * 客户状态
     */
    @NotNull(message = "客户状态不能为空")
    private Integer custStatus;

    /**
     * 客户类型
     */
    @NotNull(message = "客户类型不能为空")
    private Integer custType;

    /**
     * 客户星级
     */
    @NotNull(message = "客户星级不能为空")
    private Integer custStar;

    /**
     * 客户来源
     */
    private Integer custFrom;

    /**
     * 首联系人
     */
    @NotBlank(message = "联系人不能为空")
    private String userName;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    private String userMobile;

    /**
     * 最后跟进时间
     */
    private Date lastTime;

    /**
     * 未跟进天数
     */
    private Integer noDay;

    /**
     * 提醒方式
     */
    private Integer txType;

    /**
     * 尊称
     */
    private Integer respName;
    @NotBlank(message = "跟进人不能为空")
    private String gjPeople;
    @NotBlank(message = "归属人不能为空")
    private String guiShu;

    private  String bz;

    @TableField(exist = false)
    private String statusName;
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private String starName;
    @TableField(exist = false)
    private String fromName;
}